package com.example.haojiutao.service;



import com.example.haojiutao.common.Result;
import com.example.haojiutao.model.domain.Address;

import java.util.List;

public interface AddressService {
    /*
     * @Description: 用户添加地址
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/29 19:46
     * @param: address
     * @return: com.example.treasure_box.common.Result
     **/
    int insertAddress(Address address);

    /*
     * @Description: 删除地址
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/29 19:57
     * @param: null
     * @return: null
     **/
    int deleteAddress(Integer id);

    /*
     * @Description: 根据ID查询地址
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/29 20:04
     * @param: id
     * @return: com.example.treasure_box.common.Result
     **/
    Address selectById(Integer id);

    /*
     * @Description: 查询用户所有地址
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/29 20:11
     * @param: address
     * @return: com.example.treasure_box.common.Result
     **/
    List<Address> selectList(Address address);

    /*
     * @Description: 修改地址信息
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/29 20:18
     * @param: address
     * @return: com.example.treasure_box.common.Result
     **/
    int updateAddress(Address address);
}
